/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tomica.datarespone;

import iaik.pkcs.pkcs11.wrapper.CK_ATTRIBUTE;
import iaik.pkcs.pkcs11.wrapper.PKCS11Constants;
import tomica.object.ATTRIBUTE_NOT_OBJECT;

/**
 *
 * @author Tung
 */

public class DataResponse_C_GetAttributeValue {
    private long responseCode;
    private ATTRIBUTE_NOT_OBJECT[] attributeList;

//    public DataResponse_C_GetAttributeValue(long responseCode, CK_ATTRIBUTE[] attrListInput) {
//        this.responseCode = responseCode;
//        this.attributeList = new CK_ATTRIBUTE[attrListInput.length];
//        for (int i=0; i<attrListInput.length; i++) {
//            this.attributeList[i] = (CK_ATTRIBUTE) attrListInput[i].clone();
//        }
//        //this.getAttrList = getAttrList.clone();
//        //this.getAttrList = getAttrList;
//    }

    public DataResponse_C_GetAttributeValue() {
    }

    public long getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(long responseCode) {
        this.responseCode = responseCode;
    }

    public ATTRIBUTE_NOT_OBJECT[] getAttributeList() {
        return this.attributeList;
    }

    public void setAttributeList(CK_ATTRIBUTE[] attributeList) {
        this.attributeList = new ATTRIBUTE_NOT_OBJECT[attributeList.length];
        for (int i=0; i<attributeList.length; i++) {
            this.attributeList[i] = new ATTRIBUTE_NOT_OBJECT();
            this.attributeList[i].setType(attributeList[i].type); 
            this.attributeList[i].setpValue(attributeList[i].pValue);
        }
    }

    public void setAttributeList(ATTRIBUTE_NOT_OBJECT[] attributeList) {
        this.attributeList = attributeList;
    }
    
    
}
